export interface User {
  _id?: string;
  id?: string;
  username: string;
  email: string;
  role: 'admin' | 'user';
  createdAt: string;
  updatedAt?: string;
  lastLogin?: string;
  status?: 'active' | 'inactive';
  profile?: {
    name?: string;
    phone?: string;
    company?: string;
    position?: string;
  };
}

export interface LoginCredentials {
  email: string;
  password: string;
}

export interface RegisterData {
  username: string;
  email: string;
  password: string;
}

export interface ResetPasswordData {
  email: string;
}

export interface NewPasswordData {
  password: string;
  confirmPassword: string;
  token: string;
}

export interface AuthResponse {
  token: string;
  user: User;
} 